import numpy

class Mouse(object):
	"""
	This encapsulates some mouse's functionalities.
	"""
	
	def __init__(self):
		self.position = numpy.array([0, 0])
		self.lastPosition = numpy.array([0, 0])
		self.leftClicked = False
		self.middleClicked = False
		self.rightClicked = False
		
	def __getitem__(self, index):
		return self.position[index]
	
	def __setitem__(self, index, value):
		self.position[index] = value